#define _CRT_SECURE_NO_WARNINGS 1


#include"HashTable.h"

int main()
{
	int arr[] = { 19,30,5,36,13,20,21,12 };
	HashTable<int, int> hash;
	for (auto& e : arr)
	{
		hash.Insert({ e, e });
	}

	hash.Insert({ 34,34 });
	for (size_t i = 0; i < 50; i++)
	{
		hash.Insert({ rand(),1 });
	}

	cout << hash.Find(20) << endl;
	cout << hash.Find(9) << endl;
	hash.Erase(30);
	cout << hash.Find(20) << endl;
	cout << hash.Find(9) << endl;
	cout << hash.Find(30) << endl;

	return 0;
}